package com.tl.app.service.impl;

import java.util.List;
import com.tl.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tl.app.mapper.AppTagClerkMapper;
import com.tl.app.domain.AppTagClerk;
import com.tl.app.service.IAppTagClerkService;

/**
 * 店员标签Service业务层处理
 * 
 * @author suhp
 * @date 2024-07-07
 */
@Service
public class AppTagClerkServiceImpl implements IAppTagClerkService 
{
    @Autowired
    private AppTagClerkMapper appTagClerkMapper;

    /**
     * 查询店员标签
     * 
     * @param id 店员标签主键
     * @return 店员标签
     */
    @Override
    public AppTagClerk selectAppTagClerkById(Long id)
    {
        return appTagClerkMapper.selectAppTagClerkById(id);
    }

    /**
     * 查询店员标签列表
     * 
     * @param appTagClerk 店员标签
     * @return 店员标签
     */
    @Override
    public List<AppTagClerk> selectAppTagClerkList(AppTagClerk appTagClerk)
    {
        return appTagClerkMapper.selectAppTagClerkList(appTagClerk);
    }

    /**
     * 新增店员标签
     * 
     * @param appTagClerk 店员标签
     * @return 结果
     */
    @Override
    public int insertAppTagClerk(AppTagClerk appTagClerk)
    {
        appTagClerk.setCreateTime(DateUtils.getNowDate());
        int i=appTagClerkMapper.insertAppTagClerk(appTagClerk);
        
        
        return i;
    }

    /**
     * 修改店员标签
     * 
     * @param appTagClerk 店员标签
     * @return 结果
     */
    @Override
    public int updateAppTagClerk(AppTagClerk appTagClerk)
    {
        return appTagClerkMapper.updateAppTagClerk(appTagClerk);
    }

    /**
     * 批量删除店员标签
     * 
     * @param ids 需要删除的店员标签主键
     * @return 结果
     */
    @Override
    public int deleteAppTagClerkByIds(Long[] ids)
    {
        return appTagClerkMapper.deleteAppTagClerkByIds(ids);
    }

    /**
     * 删除店员标签信息
     * 
     * @param id 店员标签主键
     * @return 结果
     */
    @Override
    public int deleteAppTagClerkById(Long id)
    {
        return appTagClerkMapper.deleteAppTagClerkById(id);
    }
}
